<?php
	if(!defined('CMS'))die;
	global$Eleanor;
	$ma = reset(array_keys($Eleanor->modules['sections'], 'account'));
	$draugiem = new Draugiem('15006083', '4341143fc705bbd89ebe5c37b5561fca');
	$dr_button = $draugiem->getLoginButton(PROTOCOL . Eleanor::$domain .'/'. $Eleanor->Url->special . $Eleanor->Url->Construct(array('module' => $ma, 'do' => 'logindr'), false, false), false);
?>
<div id="login_background">
	<div id="login_form_centering">
		<div id="login_form">
			<div id="login_form_center"></div>
			<div id="login_form_closing"></div>
			<form method="post" action="<?=  $Eleanor->Url->special . $Eleanor->Url->Construct(array('module' => $ma, 'do'=>'login'), false, '')?>">
				<div id="fieldset_container">
					<div id="fieldset">
						<label><?=  Eleanor::$Language['tpl']['login']?>:</label>
						<input name="login[name]" type="text" value="" placeholder="<?=  Eleanor::$Language['tpl']['login']?>">
						<label><?=  Eleanor::$Language['tpl']['pass']?>:</label>
						<input name="login[password]" type="password" value="" placeholder="<?=  Eleanor::$Language['tpl']['pass']?>">
						<button id="form_login"><?=  Eleanor::$Language['tpl']['enter']?></button>
						<div id="legend"><?=  Eleanor::$Language['tpl']['auth']?><div id="legend_border"></div></div>
					</div>
				</div>
			</form>
			<div style="overflow: hidden">
				<a style="float: left" href="<?=  Eleanor::$vars['link_register']?>"><?=  Eleanor::$Language['tpl']['register']?></a>
				<a style="float: right" href="<?=  Eleanor::$vars['link_passlost']?>"><?=  Eleanor::$Language['tpl']['lostpass']?></a>
			</div>
			<div id="connect_with_cont">
				<div id="form_circle" class="circle_off"></div>
				<div id="form_social_text"><?=  Eleanor::$Language['tpl']['auth_social']?></div>
			</div>
			<div id="showing_container">
				<div id="social_buttons">
					<button id="form_draugiem" class="soc_btn">
						<span class="image_cont">
							<img src="<?= $theme ?>images/form_draugiem.png" alt="">
						</span>
						<a href="<?=  $dr_button['url']?>" <?=  $dr_button['onclick']?>><span class="login_form_text"><?=  Eleanor::$Language['tpl']['auth_draugiem']?></span></a>
					</button>
					<button id="form_facebook" class="soc_btn">
						<span class="image_cont">
							<img src="<?=  $theme?>images/form_facebook.png" alt="">
						</span>
						<span class="login_form_text"><?=  Eleanor::$Language['tpl']['auth_facebook']?></span>
					</button>
				</div>
			</div>
		</div>
	</div>
</div>